﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using WebApi.PostModel;
using WebApi.Models;
using WebApi.Class;
using Yd.Domain.DAL;
using Yd.CommCls;
using Yd.BLL;
using System.Data;
using System.Data.SqlClient;
using Yd.Model;
using System.Text;
namespace WebApi
{
    public partial class ActionDetails : System.Web.UI.Page
    {
        public CommDAL commdal = new CommDAL();
        protected void Page_Load(object sender, EventArgs e)
        {
            DataSet ds = commdal.Gettz_news(Request["Id"]);
            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                this.ft.Text = ds.Tables[0].Rows[0]["actionName"].ToString().Trim();
                this.Literal2.Text = String.Format("地点：{0},  费用：{3},  时间：{1}至{2}", ds.Tables[0].Rows[0]["actionAddress"].ToString().Trim(), ds.Tables[0].Rows[0]["startTime"].ToString().Trim(), ds.Tables[0].Rows[0]["endTime"].ToString().Trim(), ds.Tables[0].Rows[0]["actionCost"].ToString().Trim());
                this.Literal1.Text = ds.Tables[0].Rows[0]["actionContent"].ToString().Trim();
            }
        }
    }
}